package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class UserExchange extends DataObject {

    private long userId;

    private int exchangeId;

    private String exchangeKey;

    private long useTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getExchangeId() {
        return exchangeId;
    }

    public void setExchangeId(int exchangeId) {
        if(this.exchangeId != exchangeId) {
            this.exchangeId = exchangeId;
            setUpdateOption();
        }
    }

    public String getExchangeKey() {
        return exchangeKey;
    }

    public void setExchangeKey(String exchangeKey) {
        if(!Objects.equals(this.exchangeKey, exchangeKey)) {
            this.exchangeKey = exchangeKey;
            setUpdateOption();
        }
    }

    public long getUseTime() {
        return useTime;
    }

    public void setUseTime(long useTime) {
        if(this.useTime != useTime) {
            this.useTime = useTime;
            setUpdateOption();
        }
    }
}
